package com.ing.study.conf.controller.entity;

import com.ing.study.conf.controller.CommPropertyResourceFactory;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Data
@Component
@PropertySource(value = {"classpath:people.yml"},encoding = "utf-8",factory = CommPropertyResourceFactory.class)
@ConfigurationProperties(prefix = "people",ignoreUnknownFields = true)
public class People {

    private String id;
    private String names;
    private Integer age;
}
